﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Ct.StudentProject.DTO;
using Ct.StudentProject.StudentModel;

namespace Ct.StudentProject.Service
{
    public class StudentToll
    {
        public RegisterStudent StudentTransfRegister(RequestStudent stu)
        {

            RegisterStudent user = new RegisterStudent();

            user.userName = stu.userName;
            user.name = stu.name;
            user.IDNumber = stu.IDNumber;
            user.Password = stu.Password;
            user.RegisterTime = DateTime.Now.ToLongDateString().ToString();

            return user;
        }

    }
}
